//
//  tminimo.c
//  CArray_framework
//
//  Created by Salvatore Totaro on 24/10/13.
//
//

#include <stdio.h>
#include "Carray.h"

int main(int argc, char *argv[]){
	int min_position, min_number=0;
	int data[10]={-10,23,51,6,-23,0,0,-23,-23,100};
	
	//calcolo il minimo del vettore data
	min_number=min(data,&min_position,0);
	
	printf("il minimo di data è %d in posizione %d e compare %d volte\n",data[min_position], min_position, min_number);
	
	return 0;
}